#!/usr/bin/env python
# encoding: utf-8


"""
@version : 
@author  : 
@license : 
@contact : ****@massclouds.com
@site    : http://blog.csdn.net/***
@software: PyCharm
@time    : 16-11-14 下午7:17
"""


class MyException(Exception):
    "asdfas"
    # def __init__(self,*args, **kwargs):
    #     super(MyException, self).__init__(*args, **kwargs)


def test():
    raise MyException("test")

try:
    test()
except MyException as e:
    print "----",e.message
    print(str(e.message).decode("utf-8"))
    # print(str(e.message).encode("utf-8"))
except Exception,e:
    print(e.message)
